//q3.cpp
//
//Binyamin 28 december 2017
//===========================================================================
#include<iostream>

using namespace std;

//max
//input: 3 numbers.
//output: the maximum numer.

int max(int a, int b, int c)
{
	if(a>b)
	{
		if(a>c)
			return a;
	}
	else
		if(b>c)
			return b;
	return c;
}

//min
//input: 3 numbers.
//outout: the minimal number.

int min(int a, int b, int c)
{
	return -1*max(-1*a, -1*b, -1*c);
}
//output:
//None, no main for the program.
